package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DzHuiyiMapper;
import com.ruoyi.system.domain.DzHuiyi;
import com.ruoyi.system.service.IDzHuiyiService;


import com.ruoyi.common.core.domain.entity.SysRole;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.system.service.ISysRoleService;
import com.ruoyi.system.mapper.DzHuiyuanMapper;
import com.ruoyi.system.domain.DzHuiyuan;
import com.ruoyi.system.service.IDzHuiyuanService;

/**
 * 会议管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-12
 */
@Service
public class DzHuiyiServiceImpl implements IDzHuiyiService 
{
    @Autowired
    private DzHuiyiMapper dzHuiyiMapper;

    @Autowired
    private ISysRoleService sysRoleService;

    @Autowired
    private IDzHuiyuanService dzHuiyuanService;

    /**
     * 查询会议管理
     * 
     * @param hyId 会议管理主键
     * @return 会议管理
     */
    @Override
    public DzHuiyi selectDzHuiyiByHyId(Long hyId)
    {
        return dzHuiyiMapper.selectDzHuiyiByHyId(hyId);
    }

    /**
     * 查询会议管理列表
     * 
     * @param dzHuiyi 会议管理
     * @return 会议管理
     */
    @Override
    public List<DzHuiyi> selectDzHuiyiList(DzHuiyi dzHuiyi)
    {

        return dzHuiyiMapper.selectDzHuiyiList(dzHuiyi);
    }

    @Override
    public List<DzHuiyi> selectDzHuiyiListWeb(DzHuiyi dzHuiyi)
    {
        return dzHuiyiMapper.selectDzHuiyiList(dzHuiyi);
    }

    /**
     * 新增会议管理
     * 
     * @param dzHuiyi 会议管理
     * @return 结果
     */
    @Override
    public int insertDzHuiyi(DzHuiyi dzHuiyi)
    {
        dzHuiyi.setCreateTime(DateUtils.getNowDate());
        return dzHuiyiMapper.insertDzHuiyi(dzHuiyi);
    }

    /**
     * 修改会议管理
     * 
     * @param dzHuiyi 会议管理
     * @return 结果
     */
    @Override
    public int updateDzHuiyi(DzHuiyi dzHuiyi)
    {
        return dzHuiyiMapper.updateDzHuiyi(dzHuiyi);
    }

    /**
     * 批量删除会议管理
     * 
     * @param hyIds 需要删除的会议管理主键
     * @return 结果
     */
    @Override
    public int deleteDzHuiyiByHyIds(Long[] hyIds)
    {
        return dzHuiyiMapper.deleteDzHuiyiByHyIds(hyIds);
    }

    /**
     * 删除会议管理信息
     * 
     * @param hyId 会议管理主键
     * @return 结果
     */
    @Override
    public int deleteDzHuiyiByHyId(Long hyId)
    {
        return dzHuiyiMapper.deleteDzHuiyiByHyId(hyId);
    }
}
